home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 July
/
Chip_2000-07_cd.bin
/
sharewar
/
vbshpdfc
/
Install.exe
/
VB Shaped Form Creator.CAB
/
ShapedForm.frm
< prev
next >
Wrap
Text File
|
2000-04-15
|
1KB
|
33 lines
VERSION 5.00
Begin VB.Form ShapedForm
BorderStyle = 0 'None
Caption = "ShapedForm"
ClientHeight = 3195
ClientLeft = 0
ClientTop = 0
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
End
Attribute VB_Name = "ShapedForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long
Private Declare Function SetWindowRgn Lib "user32" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long
Dim WindowRgn As Long
Private Sub Form_Load()
WindowRgn = ReadFormRegion(App.Path + "\Shape.dat")
SetWindowRgn Me.hWnd, WindowRgn, True
End Sub
Private Sub Form_Unload(Cancel As Integer)
DeleteObject WindowRgn
End Sub